# 子类不能访问父类私有属性，和私有方法
class A:
    n1 = 1200
    __n2 = 200

    def hi(self):
        print("hi")

    def __hello(self):
        print("hello")


class B(A):
    n1 = 100

    # 错误的
    # print(A.__n2)
    # print(super.__n2)
    def print1(self):
        print(super().n1)




b = B()
b.print1()
